/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package settings.collections.elements;

import java.net.URL;
import javax.swing.ImageIcon;

/**
 *
 * @author rbs
 */
public class PictureManager {

    public ImageIcon getImage(String tabName, String file)
    {
        URL url;

        if (tabName.isEmpty())
            url = getClass().getResource("/fwdisp/gui/tabs/pics/" + file);
        else
            url = getClass().getResource("/fwdisp/gui/tabs/" + tabName + "/pics/" + file);

        return new ImageIcon(url);
    }


}
